/*
 * 展示客户信息交易
 * 参数   交易码：trancode=11160
 * 
 */

package org.ccams.tran;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import net.sf.json.JSONObject;

import org.ccams.domain.TClient;
import org.ccams.util.ConvertUtil;

public class TranClient extends AbstractJsonTran {

	@SuppressWarnings("unchecked")
	public void buildJSONObject(Map model, JSONObject json,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		
		List<TClient> list = getCcamsService().getTclientDao().getAllTClient();
		
		json.putAll(ConvertUtil.generate(list));
	}
}
